<template>
  <a-table
    :dataSource="dataSource"
    size="default"
    rowKey="id"
    :loading="loading"
    :columns="columns"
    :pagination="false"
    :scroll="{ y: 230 }"
  >
  </a-table>
</template>

<script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
export default {
  mixins: [JeecgListMixin],
  data() {
    return {
      list1: '/sys/querySimpleLogin1',
      list2: '/sys/querySimpleLogin2',
      url: {
        list: '',
      },
      disableMixinCreated: true,
      columns: [
        {
          dataIndex: 'realname',
          title: '登录名',
          align: 'center',
        },
        {
          dataIndex: 'username',
          title: '用户名',
          align: 'center',
        },
        {
          dataIndex: 'ip',
          title: 'ip',
          align: 'center',
        },
      ],
    }
  },
  props: {
    tableType: {
      type: Number,
      default: 0,
    },
  },
  mounted() {
    this.url.list = this.tableType == 0 ? this.list1 : this.list2
    this.loadData()
  },
  methods: {
  },
}
</script>

<style lang="less" scoped>
</style>